package org.lex.swt.table;

import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

public class RowLabelProvider extends LabelProvider implements ITableLabelProvider {
	@Override
	public Image getColumnImage(Object element, int columnIndex) {
		return ((IRowData) element).getImage(columnIndex);
	}

	@Override
	public String getColumnText(Object element, int columnIndex) {
		return ((IRowData) element).getText(columnIndex);
	}

	@Override
	public boolean isLabelProperty(Object element, String property) {
		return ((IRowData) element).isLabelProperty(property);
	}
}
